package com.ys.zuul.zuulgatewaydemo.filter;

import com.netflix.zuul.ZuulFilter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.netflix.zuul.filters.support.FilterConstants;
import org.springframework.stereotype.Component;

/**
 * <p>@description:清除过滤器</p>
 *
 * @author yangshuang
 * @version 1.0
 * @date 18-5-14 下午11:12
 */
@Slf4j
@Component
public class ClearFilter extends ZuulFilter {
    @Override
    public String filterType() {
        return FilterConstants.POST_TYPE;//定义filter的类型，有pre、route、post、error四种
    }

    @Override
    public int filterOrder() {
        return 1;
    }

    @Override
    public boolean shouldFilter() {
        return true;
    }

    @Override
    public Object run() {


        return null;
    }
}
